<?php

namespace app\api\validate;

use think\Validate;

class Proxy extends Validate
{
    protected $rule = [
        ['nickname',       'require',               '请先填写姓名'],
        ['idcard',        'require',    '请先填写身份证'],
        ['phone',        'require',    '请先填写联系电话'],
        ['name',        'require',    '请先填写代理名称'],
        ['count',        'require|number|>:0',    '请先填写主播人数|主播人数不正确|主播人数不正确'],
        ['image',        'require',    '请先上传图片'],
    ];
    
    protected $scene = [
        'join'          => ['nickname', 'idcard', 'phone', 'name', 'count', 'image'],
    ];
}